const {execSync} = require('node:child_process')
execSync('ffmpeg -i 1.mp4 -vf "split[s1][s2];[s1]trim=start_frame=0:end_frame=20, palettegen[p];[s2][p]paletteuse" -y 1.gif ')